<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="order by dede58.com"/>
    <title>个人信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/layui/css/layui.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/personal.css" media="all">
    <%--<script src="js/jquery2.js"></script>
    <script src="common/bootstrap/js/bootstrap.js"></script>--%>
</head>
<body>

<%--模态框一--%>
<%--<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">
                <form id="jobForm">
                    <input type="text" name="checkId" id="checkId" hidden>
                    <div class="form-group">
                        <label for="id">序号</label>
                        <input type="text"  class="form-control" name="id" id="id">
                    </div>
                    <div class="form-group">
                        <label for="empid">人员编号</label>
                        <input type="text" class="form-control" id="empid" name="empid" >
                    </div>
                    <div class="form-group">
                        <label for="empname">人员姓名</label>
                        <input type="text" class="form-control" id="empname" name="empname" >
                    </div>
                    <div class="form-group">
                        <label>所在部门</label>
                        <option value="">--请选择--</option>
                        <c:forEach items="${ml}" var="m">
                            <option value="${m.dname}">${m.dname}</option>
                        </c:forEach>
                    </div>
                    <div class="form-group">
                        <label for="idcard">身份证号</label>
                        <input type="text" class="form-control" id="idcard" name="idcard" >
                    </div>
                    <div class="form-group">
                        <label for="natives">籍贯</label>
                        <input type="text" class="form-control" id="natives" name="natives"/>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-link" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-link" id="save">确认</button>
            </div>
        </div>
    </div>
</div>--%>

<section class="layui-larry-box">
    <div class="larry-personal">
        <div class="layui-tab">
            <blockquote class="layui-elem-quote news_search">
            </blockquote>
            <form class="layui-form" action="/lituixiu/update">
                <c:forEach items="${emps}" var="el">
                    <div class="layui-form-item">
                        <input type="text" name="id" value="${el.id}" hidden>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">人员编号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="empid" value="${el.empid}" required lay-verify="required" disabled
                                   autocomplete="off" class="layui-input">
                            <input type="text" name="empid" value="${el.empid}" required lay-verify="required" hidden
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">人员姓名</label>
                        <div class="layui-input-inline">
                            <input type="text" name="empname" value="${el.empname}" required lay-verify="required"
                                   placeholder="请输入姓名" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">部门</label>
                        <div class="layui-input-inline">
                            <select name="departId" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <c:forEach items="${depts}" var="da">
                                    <option value="${da.id}" ${el.departId==da.id?"selected":""} >${da.dname}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-block">
                            <input type="radio" name="sex" value="男" ${el .sex=='男'?"checked":""} title="男">
                            <input type="radio" name="sex" value="女" ${el.sex=='女'?"checked":""} title="女">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">身份证号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="idcard" value="${el.idcard}" required lay-verify="required"
                                   placeholder="请输入身份证" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">出生日期</label>
                        <div class="layui-input-inline">
                            <input type="datetime" name="birthday" value="${el.birthday}" required lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">学历</label>
                        <div class="layui-input-inline">
                            <select name="education" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <option value="小学" ${el.education=="小学"?"selected":""}>小学</option>
                                <option value="初中" ${el.education=="初中"?"selected":""}>初中</option>
                                <option value="高中" ${el.education=="高中"?"selected":""}>高中</option>
                                <option value="大学" ${el.education=="大学"?"selected":""}>大学</option>
                                <option value="高等" ${el.education=="高等"?"selected":""}>高等</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">籍贯</label>
                        <div class="layui-input-inline">
                            <input type="text" name="natives" value="${el.natives}" required lay-verify="required"
                                   placeholder="" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">民族</label>
                        <div class="layui-input-inline">
                            <input type="text" name="nation" value="${el.nation}" required lay-verify="required"
                                   placeholder="" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </c:forEach>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn" lay-filter="formDemo">立即提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/layui/layui.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/newslist.js"></script>
</body>
</html>